package com.qf.joint.service;

import com.qf.joint.pojo.Address;

import java.util.List;

/**
 * @Author Zhy
 * Date on 2020/9/12  22:39
 * @description
 */
public interface AddressService {
    public int selectCount();
    public List<Address> selectByAid(int aid);
    public List<Address> selectAll();
    public List<Address> selectByCategory(int category);//根据级别(1级、2级)查询
    public List<Address> selectL2ByAid(int aid);//根据aid查询对应的所有2级地址

    public int insertOne(Address address);
    public int updateOne(Address address);
    public int deleteOne(int aid);
}
